package com.letfox.ad.service.relation.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.relation.ADPlanMaterDao;
import com.letfox.ad.model.relation.ADPlanMater;
import com.letfox.ad.service.relation.ADPlanMaterService;

@Service
public class ADPlanMaterServiceImpl implements ADPlanMaterService {
	
	@Autowired
	private ADPlanMaterDao adPlanRlMaterDao;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return adPlanRlMaterDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ADPlanMater record) {
		return adPlanRlMaterDao.insert(record);
	}

	@Override
	public ADPlanMater selectByPrimaryKey(Long id) {
		return adPlanRlMaterDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(ADPlanMater record) {
		return adPlanRlMaterDao.updateByPrimaryKey(record);
	}

}
